package com.homedo.odin.solution.model.request.pc;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.homedo.odin.solution.model.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * @author ZhangLei
 * @date 2018-05-22
 * @description 产品资料需求
 */
@ApiModel(description = "Mng_产品资料提交需求")
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class ProductReqRequestBean extends BaseBean {

    @ApiModelProperty(value = "用户id", required = true)
    @NotNull(message = "userId用户ID不能不为空")
    @Min(message = "用户id非法参数", value = 0)
    private Integer userId;

    @ApiModelProperty(value = "用户id", required = true)
    @NotEmpty(message = "需求内容不能为空")
    private String content;

}
